package com.atguigu.srb.sms.feignclient;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2021/7/19 0019 19:44
 */
@Component
@Slf4j
public class CoreUserInfoClientFallBack implements  CoreUserInfoClient {

    @Override
    public Boolean checkphone(String mobile) {
        log.info("服务降级了，直接发送消息");
        return true; // 直接就是当前手机号没有注册
    }
}
